/** 
 * LexerException.java
 * @author Lex
 * 2007-8-18 ����02:22:10
 */
package fun.parser;

public class LexerException extends Exception {
	private int lineNumber = 0;
	private int offset = 0;

	public LexerException(String message, int line, int offset) {
		super(message);
		this.lineNumber = line;
		this.offset = offset;
	}

	/**
	 * @return the lineNumber
	 */
	public int getLineNumber() {
		return this.lineNumber;
	}

	/**
	 * @return the offset
	 */
	public int getOffset() {
		return this.offset;
	}

	public String toString() {
		return this.getMessage() + " [" + lineNumber + ", " + offset + "]";
	}
}
